<?php
/**
 * Created by PhpStorm.
 * User: chengchaogui
 * Date: 2017/8/11
 * Time: 11:35
 */

namespace App\Framework\Enum;


class ManagerStatusEnum
{
    //可用
    const ENABLE = 1;
    //冻结
    const DISABLE = 2;

    public static $dataMap = [
        self::ENABLE => '启用',
        self::DISABLE => '禁用'
    ];

    public static function getName($key)
    {
        if (array_key_exists($key, self::$dataMap)) {
            return self::$dataMap[$key];
        }

        return '';
    }
}